<? 

    function __autoload($class) {
    	$file='class.'.$class.'.php';
    	include_once($file);
    }


	$curlp = new curlp();

    $url = (isset($_POST['url']) ? $_POST['url'] : "http://www.google.de");
    
    $data = $curlp->get($url, $_POST);
    
//------------------------------------------
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
<head>

<?php print $data['head']; ?>

    <script type="text/javascript">
        $(document).ready(function(){
        	$("a").click(function(){
            	var inputAktion = document.createElement("INPUT");
            	inputAktion.value = this.href;
            	inputAktion.name = "url";
            	document.getElementById("hiddenForm").appendChild(inputAktion);
            	document.getElementById("hiddenForm").submit();
                return false;
        	});
        });
    </script>
</head>

<body>
	<form style="display: none;" method="post" action="empfaenger.php" id="hiddenForm"></form>


<?php print $data['body']; ?>
    

</body>
</html>